﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>Easyui扩展库 Combobox - 落阳 整理</title>
    <link href="http://www.easyui-extlib.com/Content/Site.css" rel="stylesheet" />
    <script src="http://www.easyui-extlib.com/Scripts/jquery/jquery-1.11.0.min.js"></script>
    <script src="http://www.easyui-extlib.com/Scripts/jquery-extensions/jquery.jdirk.js"></script>
    <link href="http://www.easyui-extlib.com/Scripts/jquery-easyui/jquery-easyui-1.4.3/themes/default/easyui.css" rel="stylesheet" />
    <link href="http://www.easyui-extlib.com/Scripts/jquery-easyui/jquery-easyui-1.4.3/themes/icon.css" rel="stylesheet" />
    <script src="http://www.easyui-extlib.com/Scripts/jquery-easyui/jquery-easyui-1.4.3/jquery.easyui.min.js"></script>
    <script src="http://www.easyui-extlib.com/Scripts/jquery-easyui/jquery-easyui-1.4.3/locale/easyui-lang-zh_CN.js"></script>

    <script src="http://www.easyui-extlib.com/Scripts/jquery-easyui-extensions/combobox/jeasyui.fixeds.combobox.setValues.js"></script>
    <script>
    $(function () {
        $("#t1").combobox({
            data: [
                //{ text: "第0项", value: "" },
                { text: "第1项", value: "1" },
                { text: "第2项", value: "2" },
                { text: "第3项", value: "3" },
                { text: "第4项", value: "4" },
                { text: "第5项", value: "5" }
            ],
            multiple: true
        });

        $("#btn1").click(function () {
            $("#t1").combobox("reset");
        });
    });
    </script>
</head>
<body>
    <div class="easyui-panel" data-options="fit:true,border:false" style="padding:25px;">
        <span style="color:red;">本页面已经载入 setValues 的扩展脚本。</span>
        <br /><br />
        <input id="t1" type="text" />
        <br /><br />
        <a id="btn1" class="easyui-linkbutton" data-options="iconCls:'icon-reload'">重置combobox</a>
        <br /><br />
    </div>
</body>
</html>
